/*
 *   Copyright (c) 2010-2022, SIUFUNG
 */
package net.siufung.market.base.user.controller.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.extern.slf4j.Slf4j;
import net.siufung.core.utils.CopyUtil;
import net.siufung.market.base.user.mapper.entity.UserPost;

import java.io.Serializable;

/**
 * <p>
 * 系统岗位 默认数据传参对象
 * </p>
 * @author 陈建峰
 * @date 2023-02-06 23:25:52
 * @since v1.0.0
 */
@Slf4j
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="UserPostDto", description="系统岗位默认数据传输对象")
public class UserPostDto implements Serializable {

    private static final long serialVersionUID = 2122648787620155622L;

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id")
    private Integer id;

    /**
     * 岗位名称
     */
    @ApiModelProperty(value = "岗位名称")
    private String postName;

    /**
     * 岗位编码
     */
    @ApiModelProperty(value = "岗位编码")
    private String postCode;

    /**
     * 岗位类型
     */
    @ApiModelProperty(value = "岗位类型")
    private String postSkill;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sequence;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String description;

    /**
     * 租户
     */
    @ApiModelProperty(value = "租户")
    private String tenantId;







    /**
     * 转化成数据库实体
     * @return UserPost
     */
    public UserPost to(){
        UserPost userPost = new UserPost();
        CopyUtil.copyProperties(this, userPost);
        return userPost;
    }
}